package com.whnk.pm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.whnk.pm.mapper.SusdDetailMapper;
import com.whnk.pm.domain.SusdDetail;
import com.whnk.pm.service.ISusdDetailService;
import com.whnk.common.support.Convert;

/**
 * 补助明细 服务层实现
 * 
 * @author whwhnk
 * @date 2019-07-27
 */
@Service
public class SusdDetailServiceImpl implements ISusdDetailService 
{
	@Autowired
	private SusdDetailMapper susdDetailMapper;

	/**
     * 查询补助明细信息
     * 
     * @param sudeId 补助明细ID
     * @return 补助明细信息
     */
    @Override
	public SusdDetail selectSusdDetailById(Integer sudeId)
	{
	    return susdDetailMapper.selectSusdDetailById(sudeId);
	}
	
	/**
     * 查询补助明细列表
     * 
     * @param susdDetail 补助明细信息
     * @return 补助明细集合
     */
	@Override
	public List<SusdDetail> selectSusdDetailList(SusdDetail susdDetail)
	{
	    return susdDetailMapper.selectSusdDetailList(susdDetail);
	}
	
    /**
     * 新增补助明细
     * 
     * @param susdDetail 补助明细信息
     * @return 结果
     */
	@Override
	public int insertSusdDetail(SusdDetail susdDetail)
	{
	    return susdDetailMapper.insertSusdDetail(susdDetail);
	}
	
	/**
     * 修改补助明细
     * 
     * @param susdDetail 补助明细信息
     * @return 结果
     */
	@Override
	public int updateSusdDetail(SusdDetail susdDetail)
	{
	    return susdDetailMapper.updateSusdDetail(susdDetail);
	}

	/**
     * 删除补助明细对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteSusdDetailByIds(String ids)
	{
		return susdDetailMapper.deleteSusdDetailByIds(Convert.toStrArray(ids));
	}
	
}
